﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace BlindTestServerService
{
    class Program
    {
        private static ServiceHost host;
        private static RemoteService remoteService;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            remoteService = new RemoteService();

            //Publication de la classe en singleton
            host = new ServiceHost(remoteService);

            //Ouverture du canal de communication
            host.Open();

            Console.WriteLine("Appuyer sur une touche pour arreter le serveur");
            Console.ReadLine();

            //Fermeture du canal de communication
            host.Close();
        }
    }
}
